import { createApp } from 'vue'
import App from './App.vue'

// 引入自定义样式
import './assets/gloable.css'
import './assets/less/main.less'

// 引入iview
import ViewUIPlus from 'view-ui-plus'
import 'view-ui-plus/dist/styles/viewuiplus.css'

// 引入vxetable
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'

// 设置全局api
import api from '@/api'
// 设置全局tool
import tool from '@/utils/tool'
// 设置全局EXUtils
import XEUtils from 'xe-utils'
// 设置全局常量
import constants from '@/constants'
// 引入路由
import router from './router'
// 引入vuex
import store from './store'

// 引入全局组件
import zzComp from './zzComp'

const app = createApp(App)

app.config.globalProperties.$API = api
app.config.globalProperties.$TOOL = tool
app.config.globalProperties.$XEUtils = XEUtils
app.config.globalProperties.$CONS = constants

app
  .use(ViewUIPlus, { size: 'small', zIndex: 3000 })
  .use(VXETable)
  .use(router)
  .use(store)
  .use(zzComp)
  .mount('#app')
